<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>云音乐</title>
    <!--css样式-->
    <link rel="stylesheet" href="/css/1.css">
</head>
<body>
    <div class="wrap">
        <div id="player" class="play_wrap">
            <!--顶部搜索块-->
            <div class="search_bar">
                <img src="/images/music.png" alt=''>
                <!--音乐搜索框-->
                <input type="text" autocomplete="off" v-model='query' @keyup.enter="searchMusic()">
            </div>
            <!--中部块-->
            <div class="center_con">
                <!--搜索歌曲列表-->
                <div class="song_wrapper">
                    <!--显示歌曲列表-->
                    <ul class="song_list">
                        <li v-for="item in musicList">
                            <a href="javascript:;" @click="playMusic(item.id)"></a>
                            <b>{{item.name}}</b>
                            <span v-if="item.mvid!=0" @click="playMv(item.mvid)">
                                <i></i>
                            </span>
                        </li>
                    </ul>
                    <img src="/images/line.png" class="switch_btn" alt="">
                </div>
                <!--音乐信息、专辑-->
                <div class="player_con" :class="{playing:isPlaying}">
                    <!--拨动-->
                    <img src="/images/player_bar.png" class="play_bar">
                    <!--碟片-->
                    <img src="/images/disc.png" class="disc autoRotate">
                    <img :src="musicCover" class="cover autoRotate">
                </div>
                <!--评论-->
                <div class="comment_wrapper">
                    <h5 class="title">热门留言</h5>
                    <div class="comment_list">
                        <dl v-for="item in hotComments">
                            <dt><img :src="item.user.avatarUrl" alt=""></dt>
                            <dd class="name">{{item.nickname}}</dd>
                            <dd class="detail">
                                {{item.content}}
                            </dd>
                        </dl>
                    </div>
                    <img src="/images/line.png" class="right_line">
                </div>
            </div>
            <!--底部播放块-->
            <div class="audio_con">
                <audio ref='audio' :src="musicUrl" @play="play" @pause="pause" controls autoplay loop class="myaudio"></audio>
            </div>
            <!--MV播放界面-->
            <div class="video_con" v-show="isShow" style="display: none;">
                <video :src="mvUrl" controls='controls'></video>
                <div class="mask" @click="hide"></div>
            </div>
        </div>
    </div>

    <!--cssVue-->
    <script src="/vue.js"></script>
    <!--axios在线地址-->
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <!--js-->
    <script src="/js/main.js"></script>
    

</body>
</html>